﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yto.Common.Dependency;
using Yto.Repositories;
using System.Collections.Immutable;

namespace com.ytocargo.Core.AirPortInfos
{
    public class AirPortInfoStore : IAirPortInfoStore, ITransient
    {
        private IBaseRepository<AirPortInfo, string> _repository;

        public AirPortInfoStore(IBaseRepository<AirPortInfo,string> baseRepository)
        {
            _repository = baseRepository;
        }

        public async Task<List<AirPortInfo>> GetAirPortInfos()
        {
            return await _repository.GetListAsync();
        }

        public IQueryable<AirPortInfo> GetAll()
        {
            return _repository.GetAll();
        }
    }
}
